package entity

type SysRole struct {
	Model
	Name      string `json:"name" gorm:"column:name"`
	Code      string `json:"code" gorm:"column:code"`
	Sort      int16  `json:"sort" gorm:"column:sort"`
	Status    uint8  `json:"status" gorm:"column:status"`
	DataScope uint8  `json:"dataScope" gorm:"column:data_scope"`
}

func (SysRole) TableName() string {
	return "sys_role"
}

type RoleForm struct {
	ID        uint64 `gorm:"primary_key" json:"id"`
	Name      string `json:"name" gorm:"name"`
	Code      string `json:"code" gorm:"code"`
	Sort      int16  `json:"sort" gorm:"sort"`
	Status    uint8  `json:"status" gorm:"status"`
	DataScope uint8  `json:"dataScope" gorm:"data_scope"`
}
